//
//  NSString+HWExt.m
//  ParagraphString
//
//  Created by Lucy_Lee on 2017/1/20.
//  Copyright © 2017年 Lucy_Lee. All rights reserved.
//

#import "NSString+HWExt.h"

@implementation NSString (HWExt)

- (NSString *)trimTheBlankSpace{

    return [self stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];

}

- (NSString *)trimAllWhiteSpace{

    return [self stringByReplacingOccurrencesOfString:@"\\s" withString:@"" options:NSRegularExpressionSearch range:NSMakeRange(0, self.length)];
}

@end
